package org.zhu.common.bean.vo;


import org.zhu.common.bean.Category;
import org.zhu.common.bean.FreightModel;

/**
 * Created by zhu yingzhi on 2017/9/20.
 * @author yingzhi zhu
 * 商品详情VO
 */
public class GoodsDetailVo {
    /**
     * 商品Id 自增
     */
    private Long id;
    /**
     * 分类Id
     */
    private Long cat_id;
    /**
     * 商品唯一货号
     */
    private String goods_sn;
    /**
     * 商品名
     */
    private String goods_name;
    /**
     * 点击数
     */
    private int click_count;
    /**
     * 库存
     */
    private int goods_number;
    /**
     * 销量
     */
    private int sales;
    /**
     * 商品重量
     */
    private double goods_weight;
    /**
     * 基础价格
     */
    private double price;
    /**
     * 会员价
     */
    private double member_price;
    /**
     * 促销价
     */
    private double promote_price;
    /**
     * 促销开始时间
     */
    private String promote_start_date;
    /**
     * 促销结束时间
     */
    private String promote_end_date;
    /**
     * 商品库存报警数量
     */
    private int warn_number;
    /**
     * 商品关键字
     */
    private String keywords;
    /**
     * 简短描述
     */
    private String goods_brief;
    /**
     * 详细描述
     */
    private String goods_desc;
    /**
     * 商品轮播图 小图在前面加上thumb
     */
    private String pic_banner;
    /**
     * 商品代表图 小图在前面加上thumb
     */
    private String pic_main;
    /**
     * 是否是实物 默认为1
     */
    private boolean is_real;
    /**
     * 是否销售 默认为1
     */
    private boolean is_on_sale;
    /**
     * 添加时间
     */
    private String add_time;
    /**
     * 商品排序权重
     */
    private int sort_order;
    /**
     * 是否删除
     */
    private boolean is_delete;
    /**
     * 热品排序 0为不是热品
     */
    private int hot_sort;
    /**
     * 精品排序 0为不是精品
     */
    private int best_sort;
    /**
     * 新品排序 0为不是新品
     */
    private int new_sort;
    /**
     * 是否促销
     */
    private boolean is_promote;
    /**
     * 是否上架
     */
    private boolean is_shelve;
    /**
     * 最后一次更新时间
     */
    private String last_update;
    /**
     * 商家备注
     */
    private String seller_note;
    /**
     * 运费模板Id
     */
    private Long freight_id;

    /**
     * 运费模板
     */
    private FreightModel freight;
    /**
     * 类别
     */
    private Category category;
    /**
     * goodsAttr 商品分类Json数据
     */
    private String goodsAttr_json;


    public String getGoodsAttr_json() {
        return goodsAttr_json;
    }

    public void setGoodsAttr_json(String goodsAttr_json) {
        this.goodsAttr_json = goodsAttr_json;
    }

    public FreightModel getFreight() {
        return freight;
    }

    public void setFreight(FreightModel freight) {
        this.freight = freight;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public boolean isIs_shelve() {
        return is_shelve;
    }

    public void setIs_shelve(boolean is_shelve) {
        this.is_shelve = is_shelve;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCat_id() {
        return cat_id;
    }

    public void setCat_id(Long cat_id) {
        this.cat_id = cat_id;
    }

    public String getGoods_sn() {
        return goods_sn;
    }

    public void setGoods_sn(String goods_sn) {
        this.goods_sn = goods_sn;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public int getClick_count() {
        return click_count;
    }

    public void setClick_count(int click_count) {
        this.click_count = click_count;
    }

    public int getGoods_number() {
        return goods_number;
    }

    public void setGoods_number(int goods_number) {
        this.goods_number = goods_number;
    }

    public int getSales() {
        return sales;
    }

    public void setSales(int sales) {
        this.sales = sales;
    }

    public double getGoods_weight() {
        return goods_weight;
    }

    public void setGoods_weight(double goods_weight) {
        this.goods_weight = goods_weight;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getMember_price() {
        return member_price;
    }

    public void setMember_price(double member_price) {
        this.member_price = member_price;
    }

    public double getPromote_price() {
        return promote_price;
    }

    public void setPromote_price(double promote_price) {
        this.promote_price = promote_price;
    }

    public String getPromote_start_date() {
        return promote_start_date;
    }

    public void setPromote_start_date(String promote_start_date) {
        this.promote_start_date = promote_start_date;
    }

    public String getPromote_end_date() {
        return promote_end_date;
    }

    public void setPromote_end_date(String promote_end_date) {
        this.promote_end_date = promote_end_date;
    }

    public int getWarn_number() {
        return warn_number;
    }

    public void setWarn_number(int warn_number) {
        this.warn_number = warn_number;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getGoods_brief() {
        return goods_brief;
    }

    public void setGoods_brief(String goods_brief) {
        this.goods_brief = goods_brief;
    }

    public String getGoods_desc() {
        return goods_desc;
    }

    public void setGoods_desc(String goods_desc) {
        this.goods_desc = goods_desc;
    }

    public String getPic_banner() {
        return pic_banner;
    }

    public void setPic_banner(String pic_banner) {
        this.pic_banner = pic_banner;
    }

    public String getPic_main() {
        return pic_main;
    }

    public void setPic_main(String pic_main) {
        this.pic_main = pic_main;
    }

    public boolean isIs_real() {
        return is_real;
    }

    public void setIs_real(boolean is_real) {
        this.is_real = is_real;
    }

    public boolean isIs_on_sale() {
        return is_on_sale;
    }

    public void setIs_on_sale(boolean is_on_sale) {
        this.is_on_sale = is_on_sale;
    }

    public String getAdd_time() {
        if (add_time!=null && add_time.contains(".0")){
            add_time = add_time.substring(0,add_time.length()-2);
        }
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public int getSort_order() {
        return sort_order;
    }

    public void setSort_order(int sort_order) {
        this.sort_order = sort_order;
    }

    public boolean isIs_delete() {
        return is_delete;
    }

    public void setIs_delete(boolean is_delete) {
        this.is_delete = is_delete;
    }

    public int getHot_sort() {
        return hot_sort;
    }

    public void setHot_sort(int hot_sort) {
        this.hot_sort = hot_sort;
    }

    public int getBest_sort() {
        return best_sort;
    }

    public void setBest_sort(int best_sort) {
        this.best_sort = best_sort;
    }

    public int getNew_sort() {
        return new_sort;
    }

    public void setNew_sort(int new_sort) {
        this.new_sort = new_sort;
    }

    public boolean isIs_promote() {
        return is_promote;
    }

    public void setIs_promote(boolean is_promote) {
        this.is_promote = is_promote;
    }

    public String getLast_update() {
        return last_update;
    }

    public void setLast_update(String last_update) {
        this.last_update = last_update;
    }

    public String getSeller_note() {
        return seller_note;
    }

    public void setSeller_note(String seller_note) {
        this.seller_note = seller_note;
    }

    public Long getFreight_id() {
        return freight_id;
    }

    public void setFreight_id(Long freight_id) {
        this.freight_id = freight_id;
    }
}
